#OBJS specifies which files to compile as part of the project
OBJS = sdl-tournament-goalkeeper.cpp

#CC specifies which compiler we're using
CC = g++

#COMPILER_FLAGS specifies the additional compilation options we're using
#  the '/usr/local/include/SDL2' is for the RaspberryPi builds.
COMPILER_FLAGS = -I /usr/include/SDL2 -I /usr/local/include/SDL2

#LINKER_FLAGS specifies the libraries we're linking against
LINKER_FLAGS = -lSDL2 -lSDL2_image -lSDL2_ttf

#OBJ_NAME specifies the name of our exectuable
OBJ_NAME = sdl-tournament-goalkeeper



all: $(OBJ_NAME)

sdl-tournament-goalkeeper: $(OBJS) stick.png disc.png
	$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)

#TODO make this a .svg.png thingy. like .c.o target.
stick.png: stick.svg
	convert stick.svg stick.png

disc.png: disc.svg
	convert disc.svg disc.png


clean:
	- rm *.png
	- rm $(OBJ_NAME)
